// utility functions

int alert(const char*, ...);
int alert(unsigned int flags, const char* title, const char* msg, ...);
int alert(const wchar_t*, ...);
int alert(unsigned int flags, const wchar_t* title, const wchar_t* msg, ...);
int valert(unsigned int flags, const char* title, const char* msg, va_list vargs);
char* wide_2_utf8(const wchar_t* wide, int target_length = -1);
wchar_t* utf8_2_wide(const char* utf8, int target_length = -1);
